package com.example.questionnaire.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author hsz
 * @email 1416446590@qq.com
 * @date 2022-10-31 10:19:07
 */
@Data
@TableName("user")
public class UserEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id号
	 */
	@TableId
	private Integer id;
	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 电话号码
	 */
	private String telephone;
	/**
	 * 电子邮箱
	 */
	private String mail;
	/**
	 * 支付费用(只有租户需要支付费用)
	 */
	private BigDecimal expense;
	/**
	 * 其上级的id,管理员上级id为-1(尽量是-1，0也行)
	 */
	private Integer managerId;
	/**
	 * 标记符(标记角色，包括用户，租户，管理员)
	 */
	private Integer sign;
	/**
	 * 0表示未删除，1表示删除
	 */
	private Integer isDeleted;
	/**
	 * 表示用户可以创建(发布)问卷的数量
	 */
	private Integer createNumber;

	private Integer authority;

	public static long getSerialVersionUID() {
		return serialVersionUID;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public BigDecimal getExpense() {
		return expense;
	}

	public void setExpense(BigDecimal expense) {
		this.expense = expense;
	}

	public Integer getManagerId() {
		return managerId;
	}

	public void setManagerId(Integer managerId) {
		this.managerId = managerId;
	}

	public Integer getSign() {
		return sign;
	}

	public void setSign(Integer sign) {
		this.sign = sign;
	}



	public Integer getIsDeleted() {
		return isDeleted;
	}

	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}

	public Integer getCreateNumber() {
		return createNumber;
	}

	public void setCreateNumber(Integer createNumber) {
		this.createNumber = createNumber;
	}

	public Integer getAuthority() {
		return authority;
	}

	public void setAuthority(Integer authority) {
		this.authority = authority;
	}

	@Override
	public String toString() {
		return "UserEntity{" +
				"id=" + id +
				", username='" + username + '\'' +
				", password='" + password + '\'' +
				", telephone='" + telephone + '\'' +
				", mail='" + mail + '\'' +
				", expense=" + expense +
				", managerId=" + managerId +
				", sign=" + sign +
				", isDeleted=" + isDeleted +
				'}';
	}
}
